package com.platform.common.core.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.core.annotation.Excel;
import com.platform.common.core.web.domain.BaseEntity;

/**
 * 应用关联接口对象 plat_app_api
 *
 * @author platform
 * @date 2023-04-07
 */
public class PlatAppApi extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** id主键 */
    private Long id;

    /** app主键 */
    @Excel(name = "app主键")
    private Long appId;

    /** api主键 */
    @Excel(name = "api主键")
    private Long apiId;

    /** 加密工具 */
    @Excel(name = "加密工具")
    private Long secretId;

    /** 接口私钥 */
    @Excel(name = "接口私钥")
    private String privateSecret;

    /** 接口公钥 */
    @Excel(name = "接口公钥")
    private String publicSecret;

    /** 审核状态0-待审核1-审核通过2-审核不通过 */
    @Excel(name = "审核状态0-待审核1-审核通过2-审核不通过")
    private String approveStatus;

    /** 审核备注 */
    @Excel(name = "审核备注")
    private String approveRemark;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    /** 审核用户 */
    @Excel(name = "审核用户")
    private String approveBy;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAppId(Long appId)
    {
        this.appId = appId;
    }

    public Long getAppId()
    {
        return appId;
    }
    public void setApiId(Long apiId)
    {
        this.apiId = apiId;
    }

    public Long getApiId()
    {
        return apiId;
    }
    public void setSecretId(Long secretId)
    {
        this.secretId = secretId;
    }

    public Long getSecretId()
    {
        return secretId;
    }
    public void setPrivateSecret(String privateSecret)
    {
        this.privateSecret = privateSecret;
    }

    public String getPrivateSecret()
    {
        return privateSecret;
    }
    public void setPublicSecret(String publicSecret)
    {
        this.publicSecret = publicSecret;
    }

    public String getPublicSecret()
    {
        return publicSecret;
    }
    public void setApproveStatus(String approveStatus)
    {
        this.approveStatus = approveStatus;
    }

    public String getApproveStatus()
    {
        return approveStatus;
    }
    public void setApproveRemark(String approveRemark)
    {
        this.approveRemark = approveRemark;
    }

    public String getApproveRemark()
    {
        return approveRemark;
    }
    public void setApproveTime(Date approveTime)
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime()
    {
        return approveTime;
    }
    public void setApproveBy(String approveBy)
    {
        this.approveBy = approveBy;
    }

    public String getApproveBy()
    {
        return approveBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("appId", getAppId())
                .append("apiId", getApiId())
                .append("secretId", getSecretId())
                .append("privateSecret", getPrivateSecret())
                .append("publicSecret", getPublicSecret())
                .append("approveStatus", getApproveStatus())
                .append("approveRemark", getApproveRemark())
                .append("approveTime", getApproveTime())
                .append("approveBy", getApproveBy())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
